﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using UpFile;
public partial class upimg : System.Web.UI.Page
{
    public string openid = "";
    public string sign = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        openid = Session["openid"].ToString();
        sign = Session["sign"].ToString();
        if (IsPostBack)
        {
            UploadFileOnclick();
        }
    }
    public void UploadFileOnclick()
    {
        if (openid != "" && sign != "")
        {
            upfile objUp = new upfile();
            objUp.Sizes = 4096;
            lblResult.Text = objUp.fileSaveAs(UploadFile, true);
            if (lblResult.Text != null && lblResult.Text != "")
            {
                lblResult.Text = openid + "******" + sign;
            }
        }


    }
}